/**
 * Created by ajhin on 1/29/2015.
 */
package com.societyGames.Social
{
import com.societyGames.system.EventObject;

import flash.events.EventDispatcher;

public class Social extends EventDispatcher
{
  public static const instance:Social = new Social();
  private var _shareCompletedEventObject:EventObject;

  public function Social()
  {
    _shareCompletedEventObject = new EventObject(this, "SHARE_SUCCEEDED");
  }

  public function get shareCompletedEventObject():EventObject
  {
    return this._shareCompletedEventObject;
  }

  public function shareOnFeed(text:String):void
  {
    //TODO: Share it.
    _shareCompletedEventObject.dispatchEvent();
  }
}
}
